package reflect;

import java.util.Arrays;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(2,"one");
        doSome(5,"one","two");
        doSome(1,"one","two","three");
        doSome(123,"one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five","one","two","three","four","five");
    }

    public static void doSome(int a,String... arg){
        System.out.println(arg.length);
        System.out.println(Arrays.toString(arg));
    }
}
